package com.xjrh.traintravel.collector.netty.command.config;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 通讯协议命令-参数设置-03：特征（故障分级）
 *
 * @author snps
 * @create 2022-01-27 14:50
 * @describe
 **/
public class Config03 extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 4077691866382093909L;


    /******************************
     * 故障分级类型-轴箱
     *      固定：1
     */
    private int field1 = 1;

    /**
     * 轴箱-特征数据-长度
     */
    private int field2;

    /**
     * 轴箱-特征数据
     */
    private String field3;

    /******************************
     故障分级类型-电机
     *      固定：2
     */
    private int field4 = 2;

    /**
     * 电机-特征数据-长度
     */
    private int field5;

    /**
     * 电机-特征数据
     */
    private String field6;

    /******************************
     故障分级类型-齿轮
     *      固定：3
     */
    private int field7 = 3;

    /**
     * 齿轮-特征数据-长度
     */
    private int field8;

    /**
     * 齿轮-特征数据
     */
    private String field9;

    /******************************
     故障分级类型-波磨
     *      固定：4
     */
    private int field10 = 4;

    /**
     * 波磨-特征数据-长度
     */
    private int field11;

    /**
     * 波磨-特征数据
     */
    private String field12;


    /**
     * Constructor
     */
    public Config03() {
        this.setCommonNo("03");
    }


    /**************************************
     * Getter and Setter
     */
    public int getField1() {
        return field1;
    }

    public void setField1(int field1) {
        this.field1 = field1;
    }

    public int getField2() {
        return field2;
    }

    public void setField2(int field2) {
        this.field2 = field2;
    }

    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    public int getField4() {
        return field4;
    }

    public void setField4(int field4) {
        this.field4 = field4;
    }

    public int getField5() {
        return field5;
    }

    public void setField5(int field5) {
        this.field5 = field5;
    }

    public String getField6() {
        return field6;
    }

    public void setField6(String field6) {
        this.field6 = field6;
    }

    public int getField7() {
        return field7;
    }

    public void setField7(int field7) {
        this.field7 = field7;
    }

    public int getField8() {
        return field8;
    }

    public void setField8(int field8) {
        this.field8 = field8;
    }

    public String getField9() {
        return field9;
    }

    public void setField9(String field9) {
        this.field9 = field9;
    }

    public int getField10() {
        return field10;
    }

    public void setField10(int field10) {
        this.field10 = field10;
    }

    public int getField11() {
        return field11;
    }

    public void setField11(int field11) {
        this.field11 = field11;
    }

    public String getField12() {
        return field12;
    }

    public void setField12(String field12) {
        this.field12 = field12;
    }


    @Override
    public String toString() {
        return "Config03{" +
                "field1=" + field1 +
                ", field2=" + field2 +
                ", field3='" + field3 + '\'' +
                ", field4=" + field4 +
                ", field5=" + field5 +
                ", field6='" + field6 + '\'' +
                ", field7=" + field7 +
                ", field8=" + field8 +
                ", field9='" + field9 + '\'' +
                ", field10=" + field10 +
                ", field11=" + field11 +
                ", field12='" + field12 + '\'' +
                '}';
    }

}